// 基本重置，重置css样式
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  // font: inherit;
  vertical-align: baseline;
  // font-weight: @normalFontWeight;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  font-size: 14px;
}

ol,
ul {
  list-style: none;
}

// 全局滚动条修改
::-webkit-scrollbar {
  /* 整个滚动条 */
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  /* 滚动条中间滑动部分 */
  border-radius: 6px;
  background: rgba(223, 226, 232, 1);
  border: 1px solid rgba(248, 249, 251, 1);
}
::-webkit-scrollbar-track {
  /* 滚动轴 */
  background-color: #fff;
}
::-webkit-scrollbar-button {
  /* 滚动条两端方向按钮 */
  display: none;
}
// 表格的滚动条多余的内容
.el-table__fixed-right-patch {
  border-bottom: none !important;
}

// 重置element样式

// 1、表单border hover效果重置
.el-input__inner:hover {
  border-color: @dominantHue !important;
}
// 2、select基础多选关闭icon背景色重置
.el-tag__close.el-icon-close {
  background-color: @navigationColor !important;
}
.el-tag__close:hover {
  color: @fontBackgroundColor !important;
  background-color: @buttonBorderColor !important;
}
//3、修改按钮样式以符合UI要求，详情看UI文档
// 默认的朴素按钮
.el-button--default.is-plain {
  color: @subheadingButtonColor !important;
  border-color: @inputBoxColor !important;
  background-color: @fontBackgroundColor !important;
}
.el-button--default.is-plain:focus,
.el-button--default.is-plain:hover {
  color: @subheadingButtonColor !important;
  border-color: @inputBoxColor !important;
  background-color: @tableMenuColor !important;
}
.el-button--default.is-disabled.is-plain,
.el-button--default.is-disabled.is-plain:focus,
.el-button--default.is-disabled.is-plain:hover {
  color: @inputBoxColor !important;
  border-color: @cutOffRuleColor !important;
  background-color: @fontBackgroundColor !important;
}
// 主要的朴素按钮
.el-button--primary.is-plain {
  color: @dominantHue !important;
  border-color: @buttonBorderColor !important;
  background-color: @fontBackgroundColor !important;
}
.el-button--primary.is-plain:focus,
.el-button--primary.is-plain:hover {
  color: @fontBackgroundColor !important;
  border-color: @dominantHue !important;
  background-color: @dominantHue !important;
}
.el-button--primary.is-disabled.is-plain,
.el-button--primary.is-disabled.is-plain:focus,
.el-button--primary.is-disabled.is-plain:hover {
  color: @inputBoxColor !important;
  border-color: @inputBoxColor !important;
  background-color: @refuseDisabledButtonBackground !important;
}
// 朴素按钮的另一个状态 refuse
.el-button--default.is-plain[refuse='true'] {
  color: @subheadingButtonColor !important;
  border-color: @inputBoxColor !important;
  background-color: @tableMenuColor !important;
}
.el-button--default.is-plain[refuse='true']:focus,
.el-button--default.is-plain[refuse='true']:hover {
  color: @subheadingButtonColor !important;
  border-color: @inputBoxColor !important;
  background-color: @cutOffRuleColor !important;
}
.el-button--default.is-disabled.is-plain[refuse='true'],
.el-button--default.is-disabled.is-plain[refuse='true']:focus,
.el-button--default.is-disabled.is-plain[refuse='true']:hover {
  color: @inputBoxColor !important;
  border-color: @inputBoxColor !important;
  background-color: @refuseDisabledButtonBackground !important;
}
// 修改带图标按钮，图标与文字的间隙
.el-button [class*='el-icon-'] + span {
  margin-left: 8px !important;
}
.m-iconfont + span {
  margin-left: 8px;
}
// 修改按钮粗体为普通
.el-button {
  font-weight: @normalFontWeight !important;
}
//4、带有左右图标的输入框，比如时间日前选择器，重置其图标位置
.el-date-editor {
  .el-input__inner {
    padding: 0 10px !important;
  }
  .el-input--prefix .el-input__inner {
    padding-left: 10px !important;
  }
  .el-input--suffix .el-input__inner {
    padding-right: 60px !important;
  }
  .el-input__prefix {
    right: 5px !important;
    left: initial !important;
  }
  .el-input__suffix {
    right: 25px !important;
  }
}

// 5、复选框禁用状态背景色修改
.el-checkbox__input.is-disabled .el-checkbox__inner {
  border-color: @inputBoxColor !important;
  background-color: @navigationColor !important;
  cursor: not-allowed;
}

// 6、表格内的输入框input样式修改
.m-editable .el-input__inner {
  height: 29px !important;
  border: 1px solid #ccc !important;
  outline: none !important;
  border-radius: 3px !important;
}
.m-editable .el-input__inner:hover {
  border: 1px solid @dominantHue !important;
}
// 表格内表单图标行高
.m-editable .el-input__icon {
  line-height: 1;
}
// 7.修改badge中dot类型的大小。
.el-badge__content.is-dot {
  height: 6px !important;
  width: 6px !important;
  border: initial !important;
}
.el-badge__content.is-fixed.is-dot {
  right: 2px !important;
}

// 8.修改alert的上下padding以及type为info的背景色及字体色
.el-alert {
  padding: 10px 16px !important;
}
.el-alert--info.is-light {
  background-color: #e6edff !important;
  color: @dominantHue !important;
}

// 9.表格内单元格的左右padding
.el-table--border td:first-child .cell,
.el-table--border th:first-child .cell {
  padding-left: 10px;
  padding-right: 10px;
}

// 10. dropdown-menu下拉菜单item样式修改
.el-dropdown-menu__item:focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
  background-color: @dropDownHoverColor !important;
  color: @dominantHue !important;
}
// 提高notify层级，避免其他内容遮挡
.notifyZindex {
  z-index: 3000;
}
